package com.ruoyi.mapper;

import com.ruoyi.entity.Classes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface EsMapper {

    @Select("select * from classes where status=1")
    List<Classes> esList();

    @Update("update classes set status=#{status} where classes_id=#{id}")
    void updateStatus(Integer id,Integer status);
}
